//---------------------------------------------------------------------------
#pragma hdrstop
#include "CColoredMatrClass.h"
#define sz 10
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
CColoredMatr::CColoredMatr() {
	CMatr tmp;
	for (int i = 0; i < sz; i++)
		m.push_back(tmp);
}
//---------------------------------------------------------------------------
CColoredMatr::~CColoredMatr() {
	m.clear();
}
//---------------------------------------------------------------------------
void CColoredMatr::addRow() {
	for (int i = 0; i < sz; i++)
		m[i].addRow();
}
//---------------------------------------------------------------------------
void CColoredMatr::addCol() {
	for (int i = 0; i < sz; i++)
		m[i].addCol();
}
//---------------------------------------------------------------------------
void CColoredMatr::delRow(int index) {
	for (int i = 0; i < sz; i++)
		m[i].delRow(index);
}
//---------------------------------------------------------------------------
void CColoredMatr::delCol(int index) {
	for (int i = 0; i < sz; i++)
		m[i].delCol(index);
}
//---------------------------------------------------------------------------
void CColoredMatr::inc(int i, int j, vector <int> c, vector <int> mc) {
	for (int k = 0; k < 10; k++)
		m[k].null(i,j);
	for (int k = 0; k < c.size(); k++) {
		for (int l = 0; l < mc[k]; l++)
			m[c[k]].inc(i,j);
    }
}
//---------------------------------------------------------------------------
void CColoredMatr::dec(int i, int j) {
	for (int k = 0; k < sz; k++)
		m[k].null(i,j);
}
//---------------------------------------------------------------------------
int CColoredMatr::get(int i, int j, int col) {
	return m[col].get(i,j);
}
//---------------------------------------------------------------------------
void CColoredMatr::Out(TStringGrid *s) {
}
//---------------------------------------------------------------------------